
let btn = document.querySelector(".searchProgram");
let input = document.querySelector("#Validate");
btn.onclick = function () {
    let value = input.value.trim().toLowerCase();
    let url;
    if(pageNum != null)
        url = ROOTSources + "/program?page=" + pageNum + "&kw=" + value;
    else
        url = ROOTSources + "/program?kw=" + value;
    window.location.href = url;
}